<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateExpertTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('expert', function (Blueprint $table) {
            $table->id();
            $table->string('name',100);
            $table->string('sex',100);
            $table->string('photo',100)->default('/assets/img/1.png');
            $table->string('position',100);
            $table->string('department',100);
            $table->string('hospital',100);
            $table->String('introduction',100);
            $table->string('degree',100);
            $table->softDeletes();//软删除
            $table->timestamps();//时间戳
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('expert');
    }
}
